import 'package:banquanjie_app/app/services/screenAdapter.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; // 适配
import 'package:get/get.dart';
import 'app/routes/app_pages.dart';
void main() {
  runApp(
    ScreenUtilInit(
      designSize: const Size(750, 1624),
      minTextAdapt: true,
      splitScreenMode: true,
      // Use builder only if you need to use library outside ScreenUtilInit context
      builder: (_ , child) {
        return GetMaterialApp(
          theme: ThemeData(
            // 去除按钮点击的波纹 阴影
            highlightColor: Colors.transparent,
            splashColor: Colors.transparent,
            // textTheme: TextTheme(subhead: TextStyle(textBaseline: TextBaseline.alphabetic)),
            scaffoldBackgroundColor: Color.fromRGBO(244, 247, 252, 1), //更改所有页面的背景色
            appBarTheme: AppBarTheme(
              toolbarHeight: ScreenAdapter.width(110),
              backgroundColor: Colors.white,
	            surfaceTintColor: Colors.transparent,  // 解决内容区域滚动时会修改AppBar背景颜色问题
            ),
            navigationBarTheme: NavigationBarThemeData(
              backgroundColor: Colors.white,
            ),
          ),
          debugShowCheckedModeBanner: false,
          title: "版权街",
          initialRoute: AppPages.INITIAL,
          getPages: AppPages.routes,
        );
      }
    )
  );
}
